import request from '@/utils/request'

// 登录请求接口
export const loginApi = data => request({
  method: 'POST',
  url: '/sys/login',
  data
})

// 获取用户资料
export const userInfoApi = () => request({
  method: 'POST',
  url: '/sys/profile'
})

// 根据用户id 获取用户详情
export const userInfoDetailApi = id => request({
  url: `/sys/user/${id}`
})
/** *
 *  获取某个用户的基本信息
 *
 * ***/
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}

